CustomDateFormat

class CustomDateFormat(formatStr: String?)

Flexible date parser and formatter

Constructors

Link copied to clipboard
constructor(formatStr: String?)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Return a simple character string indicating the order of the m,d,y fields. This can be fed to the DateFieldOrder enum builder in com.infinitekind.moneydance.model.txtimport package, if available.

Link copied to clipboard

Functions

Link copied to clipboard
fun format(year: Int, month: Int, day: Int): String

Format the given java.util.Date object as a string

fun format(date: Int): String

Format the given YYYYMMDD integer date as a string

Link copied to clipboard
fun parse(dateStr: String?): Date
Link copied to clipboard
Link copied to clipboard
fun setShowDay(showDay: Boolean)
Link copied to clipboard
fun setShowYear(showYear: Boolean)